﻿/*
 * @Author       : sx
 * @Date         : 2021-10-20 15:56:22
 * @LastEditors  : sx
 * @LastEditTime : 2021-10-20 17:27:10
 * @FilePath     : \React-PC-Module\config\routes.ts
 * @Description  :
 */
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
    ],
  },
  {
    name: '部门管理',
    icon: 'book',
    path: '/departmentManage',
    component: './DepartmentManage',
  },
  {
    name: '员工管理',
    icon: 'appstore',
    path: '/staffManage',
    component: './StaffManage',
  },

  {
    path: '/',
    redirect: '/DepartmentManage',
  },
  {
    component: './404',
  },
];
